home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat3
/
Tcl
/
lindex.z
/
lindex
Wrap
Text File
|
1998-10-30
|
1KB
|
67 lines
lllliiiinnnnddddeeeexxxx((((3333TTTTccccllll)))) lllliiiinnnnddddeeeexxxx((((3333TTTTccccllll))))
NNNNAAAAMMMMEEEE
lindex - Retrieve an element from a list
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
lllliiiinnnnddddeeeexxxx _l_i_s_t _i_n_d_e_x
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
This command treats _l_i_s_t as a Tcl list and returns the _i_n_d_e_x'th element
from it (0 refers to the first element of the list). In extracting the
element, _l_i_n_d_e_x observes the same rules concerning braces and quotes and
backslashes as the Tcl command interpreter; however, variable
substitution and command substitution do not occur. If _i_n_d_e_x is negative
or greater than or equal to the number of elements in _v_a_l_u_e, then an
empty string is returned. If _i_n_d_e_x has the value eeeennnndddd, it refers to the |
last element in the list.
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
element, index, list
PPPPaaaaggggeeee 1111